import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.SimpleTimeZone;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2024-02-07
 * Time: 11:57
 */
class Imp implements Comparator<Integer> {

    @Override
    public int compare(Integer o1, Integer o2) {
        return o2.compareTo(o1);
    }
}

public class TestMain {
    public static void main(String[] args) {
        Imp imp = new Imp();
        PriorityQueue<Integer> queue = new PriorityQueue<>(imp);
        queue.offer(1);
        queue.offer(3);
        queue.offer(8);
        System.out.println(queue.peek());

//        MyHeap myHeap = new MyHeap();
//        int[] array = {27, 15, 19, 18, 28, 34, 65, 49, 25, 37};
//        myHeap.InitHeap(array);
//        myHeap.createHeap();
//        System.out.println();
//        myHeap.push(80);
//        System.out.println(myHeap.pop());
//        System.out.println(myHeap.pop());
    }
}
